package com.example.pdfpress;

import net.coobird.thumbnailator.Thumbnails;

import java.io.IOException;

/**
 * @program my-project-model
 * @description:
 * @author: lee
 * @create: 2023/02/11 21:59
 */
public class Picture {
    public static void main(String[] args) throws IOException {
        Thumbnails.of("/usr/local/software/work/idea/my-project-model/pdfpress/src/main/resources/101911676123781.jpg")
                .scale(1f)
                .outputQuality(0.5f)
//                .toFile("/Users/ligang/Desktop");
                .toFile("/Users/ligang/Desktop/2.jpg");
    }
}
